<ui:composition template="/WEB-INF/templates/defaultLayout.xhtml" 
				xmlns="http://www.w3.org/1999/xhtml"
				xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:p="http://primefaces.org/ui" 
	  			xmlns:f="http://java.sun.com/jsf/core"
      			xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="title">
		#{lang.getTrans("ui.mobile.enterprise.title")}
	</ui:define>
	
	<ui:define name="layoutCenter">
		<h:form prependId="false">
			<p:growl id="growl"/>
			<p:dataTable id="basic" var="enterprise" value="#{enterpriseBean.enterprises}" >	
				<p:column id="idEnterpriseDelete" style="width:14px; text-align:center;" sortBy="#{enterprise.idEnterprise}">
					<f:facet name="header">	
						<p:commandButton style="width:18px;height:18px;" title="#{lang.getTrans('ui.mobile.common.new')}" 
						icon="ui-icon-circle-plus" action="#{enterpriseBean.toForm}"/>				
					</f:facet>
					<p:commandButton style="width:18px;height:18px;" title="#{lang.getTrans('ui.mobile.common.delete')}" 
						icon="ui-icon-trash" action="#{enterpriseBean.remover}" update="@form">  
   						<f:setPropertyActionListener target="#{enterpriseBean.enterprise}" value="#{enterprise}" />
					</p:commandButton>  
				</p:column>
			
				<p:column style="width:14px;">
					<p:commandButton style="width:18px;height:18px;" title="#{lang.getTrans('ui.mobile.common.edit')}" 
						icon="ui-icon-circle-triangle-e" action="#{enterpriseBean.toForm}">  
   						<f:setPropertyActionListener target="#{enterpriseBean.enterprise}" value="#{enterprise}" />  
					</p:commandButton>  							
				</p:column>
			
				<p:column id="cdEnterprise">
					<f:facet name="header">	#{lang.getTrans("ui.mobile.enterprise.name")}  </f:facet>
					<h:outputText value="#{enterprise.cdEnterprise}"/>	
				</p:column>			
			</p:dataTable>
	
		</h:form>
	</ui:define>
</ui:composition>
